home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 5_programming / queue < prev    next >
Encoding:
Text File  |  2002-10-28  |  1.4 KB  |  41 lines

  1. Synopsis:
  2.    queue [<flag>] <name> [<number>] [<commands>]
  3.  
  4. Description:
  5.    QUEUE allows for a sort of batch processing in ircII-EPIC.  It is a
  6.    convenient mechanism for preparing to execute a command at a later,
  7.    undetermined time.  It can also be used as a sort of dynamically
  8.    growing alias.
  9.  
  10.    Sets of commands may be stored into named queues; there is no limit
  11.    to the number of queues that may exist, or the number of commands that
  12.    may be present in a queue.  For queues with multiple commands, the
  13.    commands must be surrounded by curly braces.
  14.  
  15. Options:
  16.    -delete        delete the specified entry number in the named queue
  17.    -do            runs the commands in the named queue
  18.    -no_flush      does not flush commands (for use only with -do)
  19.    -flush         flush the named queue without running the commands
  20.    -list          show the contents of the named queue
  21.    -show          show the contents of all queues
  22.  
  23. Examples:
  24.    To add an item to the queue "foo":
  25.       queue foo {
  26.          echo This is a queued command.
  27.          echo Isn't it cool?
  28.       }
  29.  
  30.    To delete an item from a queue with multiple items:
  31.       queue -delete foo 2
  32.  
  33. See Also:
  34.    alias(5)
  35.  
  36. Bugs:
  37.    Error checking is not horribly tight with QUEUE.  Trying to confuse the
  38.    client with multiple arguments that don't belong together will probably
  39.    succeed.  Using multiple flags should be avoided whenever possible.
  40.  
  41.